package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.YouWorldGiftCard;
import com.ecoolex.discount.sales.entity.YouWorldGiftCardExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface YouWorldGiftCardMapper {
    long countByExample(YouWorldGiftCardExample example);

    int deleteByExample(YouWorldGiftCardExample example);

    int deleteByPrimaryKey(Integer cardId);

    int insert(YouWorldGiftCard record);

    int insertSelective(@Param("record") YouWorldGiftCard record, @Param("selective") YouWorldGiftCard.Column ... selective);

    YouWorldGiftCard selectOneByExample(YouWorldGiftCardExample example);

    List<YouWorldGiftCard> selectByExample(YouWorldGiftCardExample example);

    YouWorldGiftCard selectByPrimaryKey(Integer cardId);

    YouWorldGiftCard selectByPrimaryKeyWithLogicalDelete(@Param("cardId") Integer cardId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") YouWorldGiftCard record, @Param("example") YouWorldGiftCardExample example, @Param("selective") YouWorldGiftCard.Column ... selective);

    int updateByExample(@Param("record") YouWorldGiftCard record, @Param("example") YouWorldGiftCardExample example);

    int updateByPrimaryKeySelective(@Param("record") YouWorldGiftCard record, @Param("selective") YouWorldGiftCard.Column ... selective);

    int updateByPrimaryKey(YouWorldGiftCard record);

    int batchInsert(@Param("list") List<YouWorldGiftCard> list);

    int batchInsertSelective(@Param("list") List<YouWorldGiftCard> list, @Param("selective") YouWorldGiftCard.Column ... selective);

    int logicalDeleteByExample(@Param("example") YouWorldGiftCardExample example);

    int logicalDeleteByPrimaryKey(Integer cardId);
}